<?php
namespace WinZ\DataMinerBundle\Entity;

use JMS\SerializerBundle\Annotation as JMS;

use Doctrine\ORM\Mapping as ORM;

/**
 * Description of Message
 *
 * @ORM\Entity 
 * @ORM\HasLifecycleCallbacks
 * @JMS\ExclusionPolicy("None")
 */
class Message {
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    //put your code here
    
    /**
     * @ORM\Column(type="string")
     */
    private $senderName;

    /**
     * @ORM\ManyToOne(targetEntity="Character")
     * @ORM\JoinColumn(referencedColumnName="id", nullable=true)
     * @JMS\Exclude
     */
    private $senderCharacter;
    
    /**
     * @ORM\Column(type="string")
     */
    private $recipientName;

    /**
     * @ORM\ManyToOne(targetEntity="Character")
     * @ORM\JoinColumn(referencedColumnName="id", nullable=true)
     * @JMS\Exclude
     */
    private $recipientCharacter;

    /**
     * @ORM\Column(type="text")
     */
    private $text;
    
    /**
     * @ORM\Column(type="string")
     */
    private $type;

    /**
    * @ORM\Column(type="string")
    */
    private $server;
   
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }


    /**
     * Set senderName
     *
     * @param string $senderName
     * @return Message
     */
    public function setSenderName($senderName)
    {
        $this->senderName = $senderName;
    
        return $this;
    }

    /**
     * Get senderName
     *
     * @return string 
     */
    public function getSenderName()
    {
        return $this->senderName;
    }

    /**
     * Set recipientName
     *
     * @param string $recipientName
     * @return Message
     */
    public function setRecipientName($recipientName)
    {
        $this->recipientName = $recipientName;
    
        return $this;
    }

    /**
     * Get recipientName
     *
     * @return string 
     */
    public function getRecipientName()
    {
        return $this->recipientName;
    }

    /**
     * Set text
     *
     * @param string $text
     * @return Message
     */
    public function setText($text)
    {
        $this->text = $text;
    
        return $this;
    }

    /**
     * Get text
     *
     * @return string 
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Set type
     *
     * @param string $type
     * @return Message
     */
    public function setType($type)
    {
        $this->type = $type;
    
        return $this;
    }

    /**
     * Get type
     *
     * @return string 
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set server
     *
     * @param string $server
     * @return Message
     */
    public function setServer($server)
    {
        $this->server = $server;
    
        return $this;
    }

    /**
     * Get server
     *
     * @return string 
     */
    public function getServer()
    {
        return $this->server;
    }

    /**
     * Set senderCharacter
     *
     * @param \WinZ\DataMinerBundle\Entity\Character $senderCharacter
     * @return Message
     */
    public function setSenderCharacter(\WinZ\DataMinerBundle\Entity\Character $senderCharacter = null)
    {
        $this->senderCharacter = $senderCharacter;
    
        return $this;
    }

    /**
     * Get senderCharacter
     *
     * @return \WinZ\DataMinerBundle\Entity\Character 
     */
    public function getSenderCharacter()
    {
        return $this->senderCharacter;
    }

    /**
     * Set recipientCharacter
     *
     * @param \WinZ\DataMinerBundle\Entity\Character $recipientCharacter
     * @return Message
     */
    public function setRecipientCharacter(\WinZ\DataMinerBundle\Entity\Character $recipientCharacter = null)
    {
        $this->recipientCharacter = $recipientCharacter;
    
        return $this;
    }

    /**
     * Get recipientCharacter
     *
     * @return \WinZ\DataMinerBundle\Entity\Character 
     */
    public function getRecipientCharacter()
    {
        return $this->recipientCharacter;
    }
}